/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase - For3
 * <p>Powered by webrx On 2021-11-25 10:19:49
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For3 {
    public static void main(String[] args) {
        //求出8的阶乘 3 = 1*2*3  8 = 1*2*3*4*...8
        int n = 8;
        int nn = 1;
        for (int i = 1; i <= n; i++) nn *= i;
        System.out.println(nn);
        System.out.printf("%d的阶乘：%d", n, nn);
    }
}
